Printer driver, storage medium, and information processing apparatus

ABSTRACT

A printer driver includes a plurality of modules, an interface unit that accepts the addition of plug-in including one or more additional modules for realizing a predetermined function, and a storage unit that stores setting information that defines information related to a partial process for realizing the predetermined function of the plug-in. The plurality of modules performs a process that is the partial process for realizing the predetermined function and cannot be realized in the additional modules included in the plug-in in accordance with the setting information.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of and claims the benefit of priorityfrom U.S. Ser. No. 12/720,199, filed Mar. 9, 2010, which claims thebenefit of priority from Japanese Patent Application No. 2009-065256,filed on Mar. 17, 2009, the entire contents of each of which areincorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a printer driver, a storage medium, andan information processing apparatus.

2. Description of the Related Art

In recent years, various suggestions are made on a computer environmentof an office to improve an efficiency of a work.

Accordingly, it has been increasingly requested to customize and sell animage forming apparatus including a printer, a multifunction product, orthe like in such a manner that only necessary functions may be utilized.Therefore, a printer to which a function as a plug-in may be added hasbeen developed. When a function is added to a printer as a plug-in, itis also necessary to expand the function of a printer driver thatcontrols the printer in such a manner that an additional function may beused.

Furthermore, even when a function is not added to a printer, there is aneed of expanding a function to a single piece of printer driver.

However, when the function of a printer driver is expanded, it isusually necessary to recompile the printer driver and reinstall it in acustomer environment. Such a procedure deteriorates the convenience of auser.

Therefore, when the function of a printer driver is expanded, atechnology for adding the function to the printer driver as a plug-inwithout recompilation and reinstallation has been proposed.

For example, Japanese Patent Application Laid-open No. 2004-005608discloses a technology for making a device driver have a means fordetecting the addition of plug-in and informing the detected plug-in ofan event transmitted from an operating system to expand a function. As aresult, dynamic expansion of the function of the printer driver is madepossible without recompiling the device driver.

However, when a new function is added as a plug-in in a conventionaltechnology including Japanese Patent Application Laid-open No.2004-005608, a lot of processes such as the display of screen, thesaving of setting, the control of print, and the like should beperformed to realize the function. However, it is difficult to use theexisting processing unit of the printer driver to perform theseprocesses. Therefore, there is a problem in that the conventionaltechnology requires a high development cost because a plug-in should bedeveloped to realize all the processes.

SUMMARY OF THE INVENTION

It is an object of the present invention to at least partially solve theproblems in the conventional technology.

According to an aspect of the present invention a printer driverincludes a plurality of modules, an interface unit that accepts additionof a plug-in that includes one or more additional modules for realizinga predetermined function, a storage unit that stores setting informationthat defines a partial process executed by one or more of the modules inorder to realize the predetermined function of the plug-in, wherein theplurality of modules performs a process that is the partial process forrealizing the predetermined function and cannot be realized in theadditional modules included in the plug-in in accordance with thesetting information.

According to another aspect of the present invention a computer-readablestorage medium stores a program for causing a computer to execute, aninstallation unit that installs a plug-in that includes one or moreadditional modules for realizing a predetermined function on a printerdriver that includes a plurality of modules, an interface unit thataccepts addition of the plug-in including one or more additional modulesfor realizing the predetermined function, and a storage unit, and anaddition unit that adds, to the storage unit, setting information thatdefines information related to a process that is a partial process forrealizing the predetermined function executed by the plurality ofmodules and cannot be realized in the additional modules included in theplug-in.

According to still another aspect of the present invention aninformation processing apparatus has a printer driver that includes aplurality of modules, an interface unit that accepts addition of aplug-in that includes one or more additional modules for realizing apredetermined function, a storage unit that stores setting informationthat defines a partial process executed by one or more of the modules inorder to realize the predetermined function of the plug-in, wherein theplurality of modules performs a process that is the partial process forrealizing the predetermined function and cannot be realized in theadditional modules included in the plug-in in accordance with thesetting information.

The above and other objects, features, advantages and technical andindustrial significance of this invention will be better understood byreading the following detailed description of presently preferredembodiments of the invention, when considered in connection with theaccompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram illustrating the entire configuration of a printersystem according to a first embodiment;

FIG. 2 is a block diagram illustrating the configuration of a PCaccording to the first embodiment;

FIG. 3 is a diagram illustrating an example of layout information;

FIG. 4 is a diagram illustrating an example of a print setting screendisplayed by a screen display unit of a core driver when the layoutinformation illustrated in FIG. 3 is read;

FIG. 5 is a diagram illustrating an example of function information;

FIG. 6 is a diagram illustrating an example of save destinationinformation when function information is information of FIG. 5;

FIG. 7 is a block diagram illustrating the configuration of a stampplug-in installer;

FIG. 8 is a diagram illustrating an example of additional layoutinformation included in the stamp plug-in installer;

FIG. 9 is a diagram illustrating an example of additional savedestination information included in the stamp plug-in installer;

FIG. 10 is a diagram illustrating an example of additional functioninformation of a borderline plug-in installer;

FIG. 11 is a flowchart illustrating the procedure of process for aninstallation process of a plug-in that uses the stamp plug-in installerin the PC according to the first embodiment;

FIG. 12 is a diagram illustrating layout information after adding astamp plug-in and a borderline plug-in;

FIG. 13 is a diagram illustrating an example of the print setting screendisplayed by the screen display unit of the core driver after adding thestamp plug-in and the borderline plug-in;

FIG. 14 is a diagram illustrating an example of a setting screen of thestamp plug-in that is displayed by a screen display unit of the stampplug-in;

FIG. 15 is a diagram illustrating save destination information afteradding the stamp plug-in and the borderline plug-in;

FIG. 16 is a diagram illustrating function information after adding thestamp plug-in and the borderline plug-in;

FIG. 17 is a diagram illustrating plug-in information after adding thestamp plug-in and the borderline plug-in;

FIG. 18 is a flowchart illustrating the procedure of an overall printprocess performed in the PC according to the first embodiment;

FIG. 19 is a flowchart illustrating the display process procedure of asetting screen performed in a printer driver according to the firstembodiment;

FIG. 20 is a sequence diagram illustrating the process procedure betweenmodules when the printer driver according to the first embodimentdisplays the setting screen;

FIG. 21 is a sequence diagram illustrating the process procedure betweenmodules when performing operations required by the printer driveraccording to the first embodiment;

FIG. 22 is a sequence diagram illustrating a process performed in theprinter driver in accordance with a set value input through thedisplayed setting screen when adding the stamp plug-in and theborderline plug-in;

FIG. 23 is a sequence diagram illustrating the termination process ofthe setting screen when adding the stamp plug-in and the borderlineplug-in;

FIG. 24 is a flowchart illustrating a process procedure when saving aset value in a setting saving unit according to the first embodiment;

FIG. 25 is a sequence diagram illustrating a process for performing aprint from an application when adding the stamp plug-in and theborderline plug-in;

FIG. 26 is a block diagram illustrating the configuration of the PC whenadding a screen display unit to the borderline plug-in;

FIG. 27 is a diagram illustrating an example of plug-in information whenadding the screen display unit to the borderline plug-in;

FIG. 28 is a diagram illustrating an example of layout information aftera description is modified by an installer when adding the screen displayunit to the borderline plug-in;

FIG. 29 is a diagram illustrating an example of a setting screendisplayed by the screen display unit of the core driver when adding thescreen display unit to the borderline plug-in;

FIG. 30 is a diagram illustrating an example of a setting screendisplayed by the screen display unit of the borderline plug-in; and

FIG. 31 is a diagram illustrating the hardware configuration of the PCaccording to the first embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Exemplary embodiments of a printer driver, a storage medium, and aninformation processing apparatus according to the present invention willbe explained in detail below with reference to the accompanyingdrawings. However, the present invention is not limited to theseembodiments.

First Embodiment

FIG. 1 is a diagram illustrating the entire configuration of a printersystem according to the first embodiment of the present invention. Asillustrated in FIG. 1, according to the present embodiment, it isassumed that a PC 100 and a printer 150 are connected to each other viaa network 160. The printer 150 performs a print process in response to aprint request from the PC 100.

FIG. 2 is a block diagram illustrating the configuration of the PC 100.As illustrated in FIG. 2, the PC 100 includes an application 101, an OS102, a printer driver 103, a storage unit 104, and a communication unit105. Functional blocks inside the printer driver 103 illustrated in FIG.2 indicate functions or means for realizing the control of the printer150.

The communication unit 105 transmits and receives information to andfrom the printer 150, with which the communication unit 105 isconnected, via the network 160.

It is assumed that the application 101 is a software utilized by a user.When the user wants to print data edited by the application 101, theapplication 101 accepts a print request. In this case, the application101 does not generate print data on its own for the printer 150 andtransfers the print request and print information to the OS 102.

The OS 102 is a program that controls hardware and software of the PC100. The OS 102 performs the starting of a program, the read-in controlof information, saving control, and the like. As a representativeexample among operating systems, there is known UNIX (registeredtrademark).

Moreover, the OS 102 transfers information on print target together withthe print request transferred from the application 101 to the printerdriver 103.

The storage unit 104 is assumed to be a unit that stores variousinformation. The storage unit 104 stores setting information thatdefines information related to a partial process for realizing apredetermined function (for example, stamp, borderline, and the like)performed by a plug-in. As an example, the setting information includeslayout information, save destination information, function information,and plug-in information. The setting information (layout information,save destination information, function information, and plug-ininformation) defines a partial process performed by each module torealize the function of the plug-in. The partial process includes allinformation required for process such as a set value for use in processor display information for modifying a set value related to the functionof plug-in.

It is assumed that the plug-in information is information in which aplug-in added via an interface unit 112 is described. A screen displayunit 121, a setting saving unit 122, and a setting managing unit 123,which are included in a core driver 111, refer to the plug-ininformation of the storage unit 104 when confirming the installedplug-in. As a result, the installed plug-in can be confirmed.

The printer driver 103 includes the core driver 111, the interface unit112, a stamp plug-in 113, and a borderline plug-in 114.

The core driver 111 includes the screen display unit 121, the settingsaving unit 122, the setting managing unit 123, and a drawing unit 124.The core driver 111 has a standard function as the printer driver 103.It is assumed that the screen display unit 121, the setting saving unit122, the setting managing unit 123, and the drawing unit 124 form amodule group for fulfilling the function as the printer driver 103.

The module group included in the core driver 111 carries out a partialprocess that cannot be performed by a module included in the installedplug-in in accordance with the setting information (layout information,save destination information, function information, and plug-ininformation) in addition to a print process.

The screen display unit 121 displays a print setting screen. The screendisplay unit 121 according to the present embodiment displays a printsetting screen and the like based on the layout information stored inthe storage unit 104.

It is assumed that the layout information is information in which thedisplaying method or the display position of each setting is described.The layout information describes the layout of UI component displayed onthe setting screen.

FIG. 3 is a diagram illustrating an example of layout information. It isassumed that a stamp plug-in and a borderline plug-in are not yet addedto the layout information illustrated in FIG. 3. The layout informationillustrated in FIG. 3 is described in a JSON format. However, the layoutinformation may be described in other formats.

In an example of layout information illustrated in FIG. 3, layout datais described for each UI component. Layout data for each UI componenthas “type”, “name”, and “axis” as attributes.

The “type” indicates the type of UI component. “ComboBox” that is thevalue of type indicates the display by a combo box component. “CheckBox”indicates the display by a check box component. “SpinBox” indicates thedisplay by a spin box component. “EditBox” indicates the display by anedit box component.

The “name” indicates the name of setting. Among the values of name,“layout” designates that it is compaction setting, “booklet” shows thatit is bookbinding setting, “papersize” designates that it is printingpaper setting, “copies” designates that it is the number of copiessetting, and “userid” designates that it is ID setting according touser.

The “axis” indicates the coordinates of a display position. An “x” thatis the attribute of the axis indicates horizontal-direction coordinatesfrom the upper-left original point of dialog box. A “y” indicatesvertical-direction coordinates from the upper-left original point ofdialog box. For example, in an axis 301 of the compaction setting, it isdescribed that the layout is performed at the horizontal position of 25and the vertical position of 30 in the combo box component.

The screen display unit 121 reads layout information from the storageunit 104, generates a setting screen in accordance with the read layoutinformation, and displays the setting screen.

In addition, the screen display unit 121 displays only setting itemsmanaged by the setting managing unit 123 among the UI componentsdescribed in the layout information.

FIG. 4 is a diagram illustrating an example of a print setting screendisplayed by the screen display unit 121 of the core driver 111 whenreading the layout information illustrated in FIG. 3. In an exampleillustrated in FIG. 4, it is assumed that each setting described in thelayout information is managed by the setting managing unit 123. Asillustrated in FIG. 4, a compaction setting layout is located at“Layout”, a saddle stitch setting layout is located at “Booklet”, thenumber of copies setting layout is located at “copies”, an ID settinglayout according to user is located at “Userid”, and a paper sizesetting layout is located at “Papersize”.

An “OK” button illustrated in FIG. 4 is a button that saves themodification of print setting. A “Cancel” button is a button thatperforms a cancel. It is assumed that the OK button and Cancel buttonare provided regardless of the layout information.

Returning to FIG. 2, the setting managing unit 123 manages a setting(the set value and the like of each setting) used for a print process.The setting managing unit 123 according to the present embodimentmanages a print setting and solves the settable range of each settingand a prohibition between setting values of the print setting.

Moreover, the setting managing unit 123 manages a setting (the set valueand the like of each setting) used for a print process on the basis ofthe function information stored in the storage unit 104.

The settable range of each setting value and the prohibition betweensettings are described in the function information. As a specificexample, each setting and its prohibition of the printer driver aredescribed in the function information.

FIG. 5 is a diagram illustrating an example of function information. Itis assumed that the stamp plug-in and the borderline plug-in are not yetadded to the function information illustrated in FIG. 5. The functioninformation illustrated in FIG. 5 is described in an XML format.However, the function information may be described in other formats.

In an example of the function information illustrated in FIG. 5, theinformation of each setting is defined for each “item” tag. The item taghas the attributes of “name” and “type”.

The attribute “name” indicates the name of setting. The attribute “name”corresponds to the “name” of layout information. The “layout” that isthe value of the attribute name designates that it is a compactionsetting, “booklet” designates that it is bookbinding setting,“papersize” designates that it is printing paper setting, “copies”designates that it is the number of copies setting, and “userid”designates that it is ID setting according to user.

The attribute “type” indicates the type of a set value to be input. The“pickone” that is the value of “type” designates an alternative form,“string” designates a character string input form, and “number”designates a numeric value input form.

The “item” tag can have a “constraint” tag like a compaction setting 501illustrated in FIG. 5. The “constraint” tag indicates the prohibitioninformation of setting of an “item” tag that is a parent tag. The“fixvalue” that is an attribute inside the “constraint” tag indicates aset value that is forcibly modified when the prohibition conditionaccords with the “constraint” tag.

The “constraint” tag can have a “condition” tag like the compactionsetting 501 illustrated in FIG. 5. The “condition” tag indicates theprohibition condition of the “constraint tag” that is a parent tag and“expression” that is an attribute indicates its condition.

In the compaction setting, the prohibition condition accords with the“constraint” tag when “booklet” is, for example, ON and the set value of“layout” (compaction setting) is forcibly modified to OFF.

A “pickone” tag indicates a selectable set value when the “type” of the“item” tag that is a parent tag is an alternative form. The attribute“name” inside the “pickone” tag sets therein a set value. Moreover, the“pickone” tag can have a “constraint tag” even if this is different fromthe example illustrated in FIG. 5. In this manner, the “pickone” tag, inother words, an alternative can also have prohibition information.

In the case of “name” that is the attribute of “pickone” in thecompaction setting, “off” indicates function off, “2in1” indicates2-in-1 print, and “4in1” indicates 4-in-1 print. Moreover, in the saddlestitch setting, “off” indicates function off and “on” indicates functionon. Furthermore, in the paper size setting, “a3” indicates A3 paper and“a4” indicates A4 paper.

A “range” tag indicates a selectable range when the “type” of the “item”tag that is a parent tag is a numeric value type. In this case, “min”indicates the minimum value and “max” indicates the maximum value.

A “string” tag indicates a selectable character string when the “type”of the “item” tag that is a parent tag is a character string format. Inthis case, “min” indicates the minimum number of characters and “max”indicates the maximum number of characters. “chartype” indicates thetype of character. “alphanumeric” of the set value of the “chartype”indicates that a character string consisting of a numeric value andalphabet can be input. As above, an operation to be performed by thesetting managing unit 123 of the core driver 111, in other words, atechnique for managing set values of each setting is described in thefunction information.

The setting managing unit 123 reads the function information describedabove to decide the type of setting to be managed and its line boundarycharacter check and perform the setting related to the print process.

The setting saving unit 122 saves the setting values managed by thesetting managing unit 123 in a data save area such as “Devmode” or theregistry of the OS 102 (not illustrated). Moreover, the setting savingunit 122 refers to the save destination information stored in thestorage unit 104.

It is assumed that the “Devmode” is a structure provided from the OS 102to hold various setting related to print.

Information on a saving place of each setting is described in the savedestination information. FIG. 6 is a diagram illustrating an example ofsave destination information when function information is theinformation of FIG. 5. In an example illustrated in FIG. 6, the savedestination information is described in a JSON format. However, the savedestination information may be described in other formats.

Each setting name described in keys called “Devmode” and “registory” ofthe save destination information has relationship with each setting namedescribed in the function information and the layout information. Forexample, “layout” indicates compaction setting, “booklet” indicatesbookbinding setting, “papersize” indicates printing paper setting,“copies” indicates the number of copies setting, and “userid” indicatesID setting according to user.

The settings indicated by the setting names described in the key called“Devmode” are saved in a “Devmode” structure. Moreover, the settingindicated by the setting name described in the key called “registory” issaved in a registry. It is assumed that the saved settings are setvalues managed by the setting managing unit 123.

In this manner, the setting saving unit 122 reads the save destinationinformation to decide the saving place of each setting. The settingmanaging unit 123 reads out each setting value from the decided savingplace to perform setting required for a print process.

The drawing unit 124 converts a print request data transmitted from theapplication 101 into a print instruction that can be interpreted by theprinter. The converted print instruction is transmitted to the printerdriver 103 via the communication unit 105.

Returning to FIG. 2, it is assumed that the stamp plug-in 113 and theborderline plug-in 114 surrounded by a dashed line 130 are a plug-inthat is a dynamic link library that adds a function to the core driver111. The stamp plug-in 113 and the borderline plug-in 114 are configuredwith one or more modules to realize a predetermined function.

A general plug-in is configured with one or more modules of the screendisplay unit, the setting managing unit, and the drawing unit.

The screen display unit of the plug-in displays a setting screen relatedto the function of plug-in in accordance with the display instructionoutput from the screen display unit 121 of the core driver 111 via theinterface unit 112. Moreover, the setting managing unit of the plug-insolves the settable range of each setting value and the prohibitionbetween the setting values on the function of plug-in in accordance withan instruction output from the setting managing unit 123 of the coredriver 111 via the interface unit 112. Furthermore, the drawing unit ofthe plug-in realizes a drawing function performed by using the functionof plug-in.

In other words, the expanded portion of the screen display unit 121 ofthe core driver 111 becomes the screen display unit of the plug-in. Theexpanded portion of the setting managing unit 123 of the core driver 111becomes the setting managing unit of the plug-in. Furthermore, theexpanded portion of the drawing unit 124 of the core driver 111 becomesthe drawing unit of the plug-in.

The printer driver 103 according to the present embodiment has acharacteristic that the added plug-in does not necessarily require allof three modules described above. In other words, the conventionalplug-in requires to create all of three modules in order to realize afunction to be added. However, according to the present embodiment, anyplug-in to be added does not require to create all modules by utilizingthe module of the core driver 111. As a result, the development burdenof plug-in is reduced.

To utilize the module of the core driver 111 as an alternative module,it is necessary to update foreign files referred to by each module ofthe core driver 111. In other words, an additional plug-in can becreated only by adding a necessary module and updating settinginformation referred to by each module of the core driver 111.

The interface unit 112 is an interface that accepts the addition ofplug-in. When a plug-in is added to the printer driver 103, each moduleof the added plug-in can be called via the interface unit 112. Moreover,the added plug-in can also call each module of the core driver 111 viathe interface unit 112.

The addition of a plug-in related to the printer driver 103 according tothe present embodiment is performed by adding the dynamic link libraryof the plug-in per se and adding descriptions on one or more of layoutinformation, function information, save destination information, andplug-in information. As a result, a plug-in can be easily added to theprinter driver 103 which is installed in the PC 100 in advance. In otherwords, a user does not need to reinstall a printer driver. In thepresent embodiment, it will be explained about an example of adding thestamp plug-in 113 and the borderline plug-in 114. The stamp plug-in 113has a stamp function for printing the designated stamp at the designatedcoordinates. Moreover, the borderline plug-in 114 has a partition linefunction for adding a partition line to a logical page at the time ofcompaction.

Next, it will be explained about an installer that adds a plug-in. FIG.7 is a block diagram illustrating the configuration of a stamp plug-ininstaller 700 that installs the stamp plug-in 113. As illustrated inFIG. 7, the stamp plug-in installer 700 includes the stamp plug-in 113,additional layout information 701, additional save destinationinformation 702, and a starting unit 703. The stamp plug-in 113 has asimilar configuration as that of the stamp plug-in 113 illustrated inFIG. 2.

The additional layout information 701 stores information to be added tothe layout information of the storage unit 104 to realize the functionof the stamp plug-in 113.

FIG. 8 is a diagram illustrating an example of the additional layoutinformation 701. As illustrated in FIG. 8, information for displayinginformation related to the stamp plug-in 113 on a setting screen isstored.

Returning to FIG. 7, the additional save destination information 702stores information to be added to the save destination information ofthe storage unit 104 to realize the function of the stamp plug-in 113.

FIG. 9 is a diagram illustrating an example of the additional savedestination information 702. As illustrated in FIG. 9, the savedestination of the setting that is used to realize the function of thestamp plug-in 113 is stored.

Returning to FIG. 7, the starting unit 703 includes an adding unit 711and a registration unit 712, and controls the installation of a plug-in.Specifically, when the stamp plug-in installer 700 is started by a user,the starting unit 703 controls a driver that is the addition target of aplug-in to install the driver in the OS 102 and then adds the stampplug-in 113 to the printer driver 103.

The adding unit 711 performs a process for adding additional information(additional layout information, additional save destination information,and additional function information) to each setting information (layoutinformation, save destination information, and function information)stored in the storage unit 104.

The registration unit 712 registers a file name indicative of the moduleof a plug-in to be added in each scope of the plug-in information of thestorage unit 104.

In the example described above, it has been explained about the case ofthe stamp plug-in installer 700. The following is not explained in theexample described above. However, information to be added to functioninformation that is setting information may include additional functioninformation and the like.

Moreover, a borderline plug-in installer may be also realized by thesubstantially similar configuration. In this case, the borderlineplug-in installer requires additional layout information, additionalsave destination information, and additional function information inaddition to a borderline plug-in. A point the borderline plug-ininstaller is different from the stamp plug-in installer 700 is that theborderline plug-in installer includes additional function information.

FIG. 10 is a diagram illustrating an example of the additional functioninformation of the borderline plug-in installer. As illustrated in FIG.10, a setting for realizing the function of the borderline plug-in 114is stored.

In the plug-in installer according to the present embodiment, it hasbeen explained about the case where the number of plug-ins to be addedis one. However, the number of plug-ins to be added may be two or more.

Next, it will be explained about the installation process of a plug-inthat uses the stamp plug-in installer 700 according to the presentembodiment. FIG. 11 is a flowchart illustrating the process procedureperformed in the stamp plug-in installer 700 in the PC 100 according tothe present embodiment.

First, the stamp plug-in installer 700 is executed in response to theoperation of the user. In this way, the starting unit 703 starts up(Step S1101).

Next, the starting unit 703 calls out the interface unit 112 of theprinter driver 103 (Step S1102). Then, the interface unit 112 outputs amessage to the effect that the installation is successful to the stampplug-in installer 700 (Step S1103).

Then, the stamp plug-in installer 700 installs (copies) a screen displayunit 131, a setting managing unit 132, and a drawing unit 133 of aplug-in in an installation directory that saves a driver that is theaddition target of the plug-in (Step S1104).

After that, the adding unit 711 of the stamp plug-in installer 700 addsthe additional layout information of the stamp plug-in to the layoutinformation to which the core driver 111 of the printer driver 103refers (Step S1105).

Furthermore, the adding unit 711 adds the additional save destinationinformation of the stamp plug-in to the save destination information towhich the core driver 111 of the printer driver 103 refers (Step S1106).

After that, the registration unit 712 registers the file names of thescreen display unit, the setting managing unit, and the drawing unit ofthe stamp plug-in 113 in each scope of the plug-in information to whichthe core driver 111 of the printer driver 103 refers (Step S1107).

According to the processing procedure described above, the installationof the stamp plug-in 113 is terminated. In addition, the addition offunction information is not performed in the processing proceduredescribed above. However, the addition of function information may beperformed if required. For example, the addition of function informationis performed when the borderline plug-in is installed.

As described above, the present invention is not limited to the additionof plug-in after the installation of the printer driver 103. A plug-inmay be added to the package of the printer driver 103 before beinginstalled in the PC 100. Similarly, also in this case, it is assumedthat each module of the stamp plug-in 113 is added to a package and aninformation addition process is performed on the setting informationdeveloped after installation.

Returning to FIG. 2, the stamp plug-in 113 includes the screen displayunit 131, the setting managing unit 132, and the drawing unit 133, andrealizes a stamp function in a print process.

The stamp function of the stamp plug-in 113 is a function for deciding arange in which coordinates may be designated from a paper size. Becausea process for deciding a range that can be designated for the stampfunction is complicated, it is difficult to describe any information inthe function information stored in the storage unit 104. For thisreason, the stamp plug-in 113 includes the setting managing unit 132that performs the process for deciding the range. Moreover, the stampplug-in 113 makes it display a preview by which the position of a stampcan be visually recognized. However, layout information cannot definethe display of the preview. Therefore, the stamp plug-in 113 includesthe screen display unit 131 that performs this display. Furthermore, thestamp plug-in 113 includes the drawing unit 133 that prints a stamp.

The screen display unit 131 displays a stamp setting screen. The settingmanaging unit 132 manages setting used for the process of stamp. Thesetting managing unit 123 according to the present embodiment managesprint setting and solves the settable range of each setting and theprohibition between setting values of the print setting. The drawingunit 133 performs a process for drawing a stamp that is performed on aprint target.

The borderline plug-in 114 includes a drawing unit 141 and realizes aborderline function in a print process. Because the installationprocedure of the plug-in is substantially similar to that of the stampplug-in 113, their descriptions are omitted. Moreover, the drawing unit141 performs a process for drawing a borderline.

The borderline plug-in 114 can select a partition line function whencompaction is not off. Because the line boundary character check can besufficiently described in function information, the borderline plug-in114 does not have the setting managing unit and corresponds toadditionally describing the line boundary character check in functioninformation. Moreover, it is assumed that an item expected to bedisplayed on a setting screen for the borderline plug-in 114 fallswithin a range that can be described by layout information. Therefore,the borderline plug-in 114 does not have a screen display unit andadditionally describes an item expected to be displayed in the layoutinformation of the storage unit 104. As a result, a setting item relatedto the borderline plug-in 114 is performed on the screen display unit121 of the core driver 111. Moreover, the borderline plug-in 114 has thedrawing unit 141 that prints a partition line on a logical page.

The stamp plug-in 113 that is added to the printer driver 103 accordingto the present embodiment requires the screen display unit 131, thesetting managing unit 132, and the drawing unit 133. On the contrary,the borderline plug-in 114 can provide a sufficient function bydeveloping only the drawing unit 141. Moreover, the acceptance ofsetting modification, the line boundary character check, or the likethat is a module that does not perform all developments can be realizedby adding the description to the configuration file.

Unlike the present embodiment, for example, when adding a plug-inshowing a simple preview based on each print setting, the presentinvention can be realized by developing a plug-in having only a settingdisplay unit. In this way, the present invention can be realized bydeveloping only a module required for each plug-in.

FIG. 12 is a diagram illustrating layout information after adding thestamp plug-in 113 and the borderline plug-in 114. Layout data (displayinformation) for performing the setting of function related to the addedplug-in is defined in the layout information illustrated in FIG. 12.

However, in the layout information illustrated in FIG. 12, thedescription related to the core driver 111 is not modified from that ofFIG. 3. The descriptions related to the stamp plug-in 113 and theborderline plug-in 114 are added to the layout information.

The description related to the borderline plug-in 114 shows to addborderline setting in a check-box format. As a result, the screendisplay unit 121 of the core driver 111 performs the whole of the UIdisplay process of setting related to the borderline. In other words,the borderline plug-in 114 can perform setting on a setting screen evenif there is not a screen display unit.

In the description related to the stamp plug-in 113,“PluginDialogButton” that is the value of an attribute “type” isexpressed as a UI component indicating a push button that calls thesetting screen of the stamp plug-in 113. A plug-in name to be called outis described in the value of the attribute “name”. The plug-in name isassociated with a plug-in name described in the plug-in information. Thescreen display unit 121 of the core driver 111 may acquire the file nameof the plug-in that should be called out from the plug-in information byusing the plug-in name read from the layout information as a key. As aresult, the screen display unit 131 of the stamp plug-in 113 may becalled out.

FIG. 13 is a diagram illustrating an example of a print setting screendisplayed by the screen display unit 131 of the core driver 111 afteradding the stamp plug-in 113 and the borderline plug-in 114. In theexample of the print setting screen illustrated in FIG. 13, unlike theprint setting screen of FIG. 4, a check box 1301 of saddle stitchsetting located at an upper right, and a push button 1302 that calls outthe setting screen of the stamp plug-in 113, located at a lower right,are added.

Next, it will be explained about a display screen when the push button1302 is clicked. FIG. 14 is a diagram illustrating an example of thesetting screen of the stamp plug-in 113 displayed by the screen displayunit 131 of the stamp plug-in 113.

In the example of the setting screen of the stamp plug-in 113illustrated in FIG. 14, a check box 1401 that is located at the left ofthe screen decides the ON/OFF of the stamp function. “Stamp Image” thatis located at the left of the screen can select an image to be stamped.For example, in the example illustrated in FIG. 14, because “Sample” isdesignated, a character string “Sample” is printed on recording paper.“Axis X” that is located at the right of the screen designateshorizontal-direction coordinates at which a stamp function is printed.“Axis Y” designates vertical-direction coordinates at which a stampfunction is printed.

FIG. 15 is a diagram illustrating save destination information afteradding the stamp plug-in 113 and the borderline plug-in 114. In the savedestination information illustrated in FIG. 15, the description relatedto the core driver 111 is not modified from that of FIG. 6. Thedescriptions related to the stamp plug-in 113 and the borderline plug-in114 are added to the save destination information.

The description related to the borderline plug-in 114 designates thatthe set value of ON/OFF of a partition line called a borderline is savedin a “Devmode” structure.

The description related to the stamp plug-in 113 designates that the setvalue of ON/OFF of the stamp function is saved in “Devmode” as thesetting name “stamp”. The description designates that the valueindicative of the type of stamp is saved in “Devmode” as the settingname “stamp_image”. The description designates that the set value ofhorizontal-direction coordinates printed as the stamp function is savedin “Devmode” as the setting name “stamp_axis_x”. The descriptiondesignates that the set value of vertical-direction coordinates printedas the stamp function is saved in “Devmode” as the setting name“stamp_axis_y”.

FIG. 16 is a diagram illustrating function information after adding thestamp plug-in 113 and the borderline plug-in 114. A set value that isused for a function performed by the added plug-in is defined in thefunction information illustrated in FIG. 16.

However, in the function information illustrated in FIG. 16, thedescription related to the core driver 111 is not modified from that ofFIG. 5. The description related to the borderline plug-in 114 is addedcompared with the function information described in FIG. 5.

The borderline setting illustrated in the function information of FIG.16 is the setting of the ON/OFF function of a partition line. When thereis not compaction, the function of the borderline forcibly becomes“OFF”. For the rest, it is described that the ON/OFF of the function isselectable. On the basis of function information, because the settingmanaging unit 123 of the core driver 111 manages the setting of theborderline, the borderline plug-in 114 does not require the settingmanaging unit 123.

The “stamp”, “stamp_image”, “stamp_axis_x”, and “stamp_axis_y” that arethe settings of the stamp plug-in 113 are managed by the settingmanaging unit 132 of the stamp plug-in 113. For this reason, thedescription performed by the stamp plug-in 113 is not in the functioninformation.

As described above, it is preferable that each plug-in includes a module(a screen display unit, a setting managing unit, and a drawing unit) ifrequired. If not required, it is preferable that each plug-in calls outthe module (the screen display unit 121, the setting managing unit 123,and the drawing unit 124) of the core driver 111. As a result, adevelopment burden may be reduced because the creation of an unnecessarymodule is omitted.

FIG. 17 is a diagram illustrating plug-in information after adding thestamp plug-in 113 and the borderline plug-in 114. The plug-ininformation can utilize any format. In the present embodiment, theplug-in information utilizes an “ini” format.

The plug-in information illustrated in FIG. 17 has three scopes of“ui_plugin”, “setting_manager_plugin”, and “graphic_plugin”.

The “ui_plugin” holds the name of each plug-in and the file name of thescreen display unit in association with each other. The screen displayunit of each plug-in may be called out from the screen display unit 121of the core driver 111 or the like by using the file name of eachplug-in described in “ui_plugin”. In other words, the screen displayunit of the plug-in is called out by only the screen display unit of thecore driver.

The “setting_manager_plugin” holds the title of each plug-in and thefile name of the setting managing unit of each plug-in in associationwith each other. The setting managing unit of each plug-in may be calledout from the setting managing unit 123 of the core driver 111 or thelike by designating the file name of each plug-in described in“setting_manager_plugin”. In other words, the setting managing unit ofthe plug-in is called out by only the setting managing unit of the coredriver.

The “graphic_plugin” holds the title of each plug-in and the file nameof the drawing unit of each plug-in in association with each other. Thedrawing unit of each plug-in can be called from the drawing unit 124 ofthe core driver 111 or the like by designating the file name of eachplug-in described in “graphic_plugin”. In other words, the drawing unitof the plug-in is called by only the drawing unit of the core driver.

In the example illustrated in FIG. 17, because the borderline plug-in114 has only the drawing unit 141, only the “graphic_plugin” has thedescription.

In the example of the plug-in information illustrated in FIG. 17, thesame dynamic link library is designated for each module of the stampplug-in 113. However, separate dynamic link libraries may be designated.

In other words, the module group illustrated by the screen display unit121, the setting saving unit 122, the setting managing unit 123, and thedrawing unit 124 carries out, on behalf of modules constituting theplug-in, a process that is necessary for a predetermined function to beperformed by a plug-in and that cannot be performed by the modulesconstituting the plug-in, in accordance with setting information (layoutinformation, save destination information, function information, andplug-in information).

Then, the setting information stored in the storage unit 104 is writtenby the installer of the plug-in. The screen display unit 121, thesetting saving unit 122, the setting managing unit 123, and the drawingunit 124 refer to the written setting information to carry out theprocess on behalf of the modules constituting the plug-in.

Next, it will be explained about an overall print process in the PC 100according to the present embodiment that is configured as describedabove. FIG. 18 is a flowchart illustrating the process procedureperformed in the PC 100 according to the present embodiment.

First, the PC 100 starts up the application 101 (Step S1801). Then, thescreen display unit 121 of the core driver displays a print settingscreen in response to the request of the application 101 (Step S1802).

Next, the screen display unit 121 refers to the plug-in information anddetermines whether there is a plug-in having a screen display unit (StepS1803). When it is determined that a plug-in having a screen displayunit is not present (Step S1803: No), the process procedure advances toStep S1805.

On the other hand, when it is determined that a plug-in having a screendisplay unit is present (Step S1803: Yes), the screen display unit ofeach plug-in displays a setting screen (Step S1804). After that, theprocess procedure advances to Step S1805.

Then, the printer driver 103 accepts the modification of print settingfrom the setting screen displayed in Step S1802 and Step S1804 (StepS1805).

Next, the setting managing unit 123 of the core driver 111 performs theline boundary character check on the accepted print setting (StepS1806).

After that, the setting managing unit 123 of the core driver 111 refersto plug-in information and determines whether a plug-in having a settingmanaging unit is present (Step S1807). When it is determined that aplug-in having a setting managing unit is not present (Step S1807: No),the process procedure advances to Step S1809.

When it is determined that a plug-in having a setting managing unit ispresent (Step S1807: Yes), the setting managing unit of each plug-inperforms the line boundary character check (Step S1808).

After that, the printer driver 103 accepts an operation for closing theprint setting screen from the user (Step S1809).

Next, the setting saving unit 122 saves the modification result of printsetting in “Devmode” or a save area (Step S1810).

Then, the application 101 performs a print (Step S1811).

Then, the drawing unit 124 of the core driver 111 of the printer driver103 executes a print process (Step S1812). After that, the drawing unit124 refers to plug-in information and determines whether a plug-inhaving a drawing unit is present (Step S1813). When it is determinedthat a plug-in having a drawing unit is not present (Step S1813: No),the process procedure advances to Step S1815.

On the other hand, when it is determined that the drawing unit 124 ispresent (Step S1813: Yes), the drawing unit of each plug-in executes adrawing process related to print (Step S1814).

Finally, the application 101 is terminated (Step S1815) to terminate theprocess.

Because the processes of each module of the core driver 111 and eachmodule of the plug-in are executed in accordance with the processingprocedure described above, a print process with the function of plug-incan be performed. Hereinafter, it will be explained about the detailedprocedure of each step.

Next, it will be explained about the display process of the settingscreen performed in the printer driver 103 according to the presentembodiment, which is shown in Step S1802 of FIG. 18. FIG. 19 is aflowchart illustrating the process procedure performed in the printerdriver 103 according to the present embodiment.

First, the screen display unit 121 of the core driver 111 refers tolayout information and acquires the list of layout data of eachcomponent (Step S1901).

Next, the screen display unit 121 determines whether the list of layoutdata is null (Step S1902). When it is determined that the list is notnull (Step S1902: No), the screen display unit 121 reads one layout datafrom the list (Step S1903).

Then, the screen display unit 121 acquires setting information such as aset value, whether it is in accordance with prohibition condition, or analternative, from the setting managing unit 123 on the basis of thesetting name designated by “name” of layout data.

After that, the screen display unit 121 determines whether the settinginformation is acquired from the setting managing unit 123 (Step S1904).When it is determined that the setting information is acquired (StepS1904: Yes), the display is performed in accordance with the layout dataand the setting information (Step S1905).

On the other hand, when it is determined that the setting information isnot acquired (Step S1904: No), the screen display unit 121 determineswhether it is a component that calls out a plug-in like“PluginDialogButton” (Step S1906). When it is determined that it is notthe component (Step S1906: No), the process procedure advances to StepS1902.

Then, when it is determined that it is the component (Step S1906: Yes),the screen display unit 121 acquires the file name of the plug-in fromthe plug-in information.

After that, the screen display unit 121 determines whether the file nameof the plug-in is acquired from the plug-in information (Step S1907).When it is determined that the file name of the plug-in is acquired(Step S1907: No), the screen display unit 121 starts the process withStep S1902.

Moreover, when it is determined that the file name of the plug-in isacquired from the plug-in information (Step S1907: Yes), the screendisplay unit 121 displays a component in accordance with the layout dataand the setting information (Step S1905).

Then, at Step S1902, when it is determined that the list is null (StepS1902: Yes), the process is terminated.

In accordance with the processing procedure described above, the settingand the component of plug-in supported by the printer driver 103 aredisplayed on the setting screen.

About a component that does not perform the call out of plug-in, whenthe setting information corresponding to the component is not managed bythe setting managing unit 123 of the core driver 111 or the settingmanaging unit of the plug-in, the screen display unit 121 determinesthat the printer driver 103 does not support the setting information anddoes not perform the display.

Moreover, concerning a component that performs the call out of plug-inwhen displaying the setting screen, the screen display unit 121 displaysthe component only when the plug-in is described in the plug-ininformation and does not display the component when the plug-in is notdescribed in the plug-in information.

Next, it will be explained about the process between modules when theprinter driver 103 according to the present embodiment displays thesetting screen. FIG. 20 is a sequence diagram illustrating the processprocedure performed in the printer driver 103 according to the presentembodiment. The sequence diagram is a sequence that in detailillustrates Step S1802 of FIG. 18.

First, the screen display unit 121 accepts an instruction for displayinga setting screen from the user (Step S2001).

Next, the screen display unit 121 transfers “Devmode” to the settingsaving unit 122 and requests the initialization of the setting managingunit (Step S2002).

Then, the setting saving unit 122 commands the setting managing unit 123to acquire the list of setting (Step S2003). Then, the setting managingunit 123 refers to plug-in information and commands the setting managingunit 132 of the specified stamp plug-in 113 to acquire the list ofsetting (Step S2004).

Along with the above, the setting managing unit 132 of the stamp plug-in113 returns the list of setting managed by the stamp plug-in 113 to thesetting managing unit 123 (Step S2005).

Next, the setting managing unit 123 adds the list of setting of thestamp plug-in 113 to the list of setting managed for the core driver 111and returns the added list to the setting saving unit 122 (Step S2006).

Then, the setting saving unit 122 acquires a set value corresponding tothe setting stored in the list from an area such as the storage unit 104in which the set value is saved (Step S2007).

Next, the setting saving unit 122 commands the setting managing unit 123to reflect the value of “Devmode” and the set value acquired from thesaved area on each setting of the setting list received in Step S2006(Step S2008).

Then, the setting managing unit 123 makes the setting managing unit 132reflect a set value corresponding to the setting managed in the stampplug-in 113 (Step S2009).

Next, the setting managing unit 123 performs the line boundary charactercheck on the set value of each setting managed by the core driver 111(Step S2010).

Next, the setting managing unit 123 performs the line boundary charactercheck on each setting managed by the setting managing unit 132 of thestamp plug-in 113 (Step S2011).

After that, the screen display unit 121 performs the acquisition requestof information of each setting described in the layout information (StepS2012). It is assumed that the information of setting is the set valueof setting, a prohibition, an alternative, and the like.

Furthermore, the setting managing unit 132 returns the settinginformation that is requested (Step S2013). After that, the screendisplay unit 121 displays a setting screen by using the received eachsetting information and the layout information (Step S2014).

The setting screen may be displayed in accordance with the processingprocedure described above.

Next, it will be explained about a process between modules whenperforming an operation required by the printer driver 103 according tothe present embodiment. FIG. 21 is a sequence diagram illustrating theprocess procedure performed in the printer driver 103 according to thepresent embodiment.

In an example illustrated in FIG. 21, the sequence diagram illustratesthe sequence in the case where the stamp plug-in 113 and the borderlineplug-in 114 are already added to the printer driver 103 and themodification instruction of “Devmode” is accepted from the application.

First, the application 101 commands the setting saving unit to performthe modification of “Devmode” (Step S2101). Next, the setting savingunit 122 commands the setting managing unit 123 to acquire the list ofsetting (Step S2102).

After that, the setting managing unit 123 commands the setting managingunit 132 of the stamp plug-in 113 to acquire the list of setting (StepS2103).

Next, the setting managing unit 132 returns the list of setting managedfor the stamp plug-in 113 to the setting managing unit 123 (Step S2104).After that, the setting managing unit 123 adds the setting list of thestamp plug-in 113 to the list of setting managed by the setting managingunit 123 and returns the added list to the setting saving unit 122 (StepS2105).

Then, the setting saving unit 122 acquires a set value from a save areasuch as the storage unit 104 (Step S2106).

Next, the setting saving unit 122 commands the setting managing unit 123to reflect the value of “Devmode” and the set value saved in the savearea on each setting of the setting list received in Step S2105 (StepS2107).

Then, the setting managing unit 123 commands the setting managing unit132 of the stamp plug-in 113 to reflect the set value input in StepS2107 on the setting (each setting name of the list received in StepS2104) managed in the stamp plug-in 113 (Step S2108).

Next, the setting managing unit 123 performs the line boundary charactercheck on each setting managed by the setting managing unit 123 itself(Step S2109). After that, the setting managing unit 123 performs theline boundary character check on each setting that is managed by thesetting managing unit 132 of the stamp plug-in 113 (Step S2110).

Next, the setting saving unit 122 commands the setting managing unit 123to acquire the set value of each of the setting (Step S2111). Along withthe above, the setting managing unit 123 performs the acquisitionrequest of the set value of each setting managed by the setting managingunit 132 of the stamp plug-in 113 (Step S2112).

Then, the setting managing unit 132 of the stamp plug-in 113 returns theset value of each setting managed therein to the setting managing unit123 (Step S2113). After that, the setting managing unit 123 returns theset value of each setting managed thereby and the set value of eachsetting input from the setting managing unit 132 of the stamp plug-in113 to the setting saving unit 122 (Step S2114).

Then, the setting saving unit 122 saves, in “Devmode”, only the setvalue of the setting designated by “Devmode” as save destinationinformation among set values of each the input setting (Step S2115).After that, the setting saving unit 122 saves, in the save area, onlythe set value of setting designated in the save area (for example,registry) as save destination information among set values of each theinput setting (Step S2116). After that, the setting saving unit 122returns a “Devmode” structure in which a set value and the like aresaved (Step S2117).

In accordance with the processing procedure described above, a set valuerequired for a print process can be set for a “Devmode” structure and asave area.

Moreover, in the processing procedure described above, because thesetting saving unit 122 of the core driver exchanges the data of thesetting managing unit of the plug-in only through the setting managingunit 123 of the core driver, an operation can be performed as if thesetting managing unit of the plug-in is present only by increasing thedescription of function information.

Next, it will be explained about a process when accepting themodification of setting from the user on a setting display screen. FIG.22 is a sequence diagram illustrating a process performed in the printerdriver 103 in accordance with the set value input in the displayedsetting screen when the stamp plug-in 113 and the borderline plug-in 114are added. This process corresponds to the processes of Steps S1804 toS1808 of FIG. 18.

First, the screen display unit 121 accepts the modification of the setvalue displayed in the setting screen from the user (Step S2201). Next,the screen display unit 121 outputs the modified set value to thesetting managing unit 123 (Step S2202). Next, the setting managing unit123 sets the input set value and then performs the line boundarycharacter check of the set value of each setting that is managed thereby(Step S2203).

After that, the setting managing unit 123 performs the line boundarycharacter check of the set value of each setting that is managed by thesetting managing unit 132 of the stamp plug-in 113 (Step S2204).

After that, the screen display unit 121 acquires the set value of eachsetting described in the layout information (Step S2205). Then, thesetting managing unit 123 returns the set value of each the requestedsetting (Step S2206).

Then, the screen display unit 121 updates the setting screen inaccordance with the set value of each the received setting (Step S2207).

Next, it is assumed that the user calls out the dialog of the stampplug-in 113 from the displayed setting screen. In this case, the callout of the dialog by the user is made toward the screen display unit 131of the stamp plug-in 113 (Step S2208).

Then, the screen display unit 131 of the stamp plug-in 113 requests thesetting managing unit 123 of the core driver 111 to acquire the setvalue of each setting displayed on the setting screen of the stampplug-in 113 (Step S2209).

Then, the setting managing unit 123 makes the setting managing unit 132of the stamp plug-in 113 acquire the set value of each the requestedsetting (Step S2210).

Along with the above, the setting managing unit 132 of the stamp plug-in113 returns the set value of each setting in response to the acquisitionrequest (Step S2211). Furthermore, the setting managing unit 123 returnsthe set value of each setting received from the setting managing unit132 of the stamp plug-in 113 (Step S2212).

Then, the screen display unit 131 of the stamp plug-in 113 displays thesetting screen of the stamp plug-in 113 in accordance with the set valueof each the received setting (Step S2213).

Next, the screen display unit 131 of the stamp plug-in 113 accepts themodification of the set value of each setting for the displayed settingscreen in accordance with the operation performed by the user (StepS2214).

Then, the screen display unit 131 outputs the set value of each theaccepted setting to the setting managing unit 123 (Step S2215). Thesetting managing unit 123 determines that the set value of the inputsetting is the set value of setting that is managed by the settingmanaging unit 132 of the stamp plug-in 113 and outputs the set value ofthe input setting to the setting managing unit 132 of the stamp plug-in113 (Step S2216).

After that, the setting managing unit 123 of the core driver 111performs the line boundary character check of the set value of each themanaged setting (Step S2217). Furthermore, the setting managing unit 123of the core driver 111 performs the line boundary character check of theset value of each setting that is managed by the setting managing unit132 of the stamp plug-in 113 (Step S2218).

After that, the screen display unit 131 of the stamp plug-in 113requests the setting managing unit 123 to acquire the set value of eachthe displayed setting (Step S2219).

Then, the setting managing unit 123 makes the setting managing unit 132of the stamp plug-in 113 acquire the set value of each the requestedsetting (Step S2220).

Then, the setting managing unit 132 of the stamp plug-in 113 returns theset value of each the requested setting (Step S2221). After that, thesetting managing unit 123 returns the set value of each the requestedsetting (Step S2222).

Then, the screen display unit 131 of the stamp plug-in 113 updates thesetting screen of the stamp plug-in 113 from the set value of each thereceived setting and displays the updated setting screen (Step S2223).

Then, the screen display unit 131 of the stamp plug-in 113 stopsdisplaying the setting screen when accepting an operation for closingthe setting screen from the user (Step S2224).

Then, the screen display unit 121 of the core driver 111 makes thesetting managing unit 123 of the core driver 111 acquire the set valueof each setting (Step S2225). Then, the setting managing unit 123 of thecore driver 111 returns the set value of each setting (Step S2226).

After that, the screen display unit 121 performs the updating of thesetting screen (UI) (Step S2227).

In the printer driver 103 according to the present embodiment, an itemrelated to the borderline plug-in 114 is included in the setting screendisplayed by the screen display unit 121 of the core driver 111. Inother words, the core driver 111 can display the description related tothe plug-in added to the layout information. Then, even if the plug-indoes not include a setting display unit, a means for modifying thesetting of the plug-in can be provided to the user.

The setting saving unit 122 of the core driver 111, the screen displayunit 121 of the core driver 111, and the setting display unit of theplug-in exchange the set value of each setting with the setting managingunit of the plug-in only through the setting managing unit 123 of thecore driver. In other words, because the setting managing unit of theplug-in becomes a common interface that exchanges the set value of eachsetting, an operation can be performed as if the setting managing unitof the plug-in is present only by increasing the description of functioninformation.

Next, it will be explained about a process when the setting screen isterminated. FIG. 23 is a sequence diagram illustrating a terminationprocess of the setting screen when adding the stamp plug-in 113 and theborderline plug-in 114. This process corresponds to the process of StepS1809 of FIG. 18.

First, the screen display unit 121 accepts the termination request ofthe setting screen from the user (Step S2301).

In response to the termination request, the setting saving unit 122makes the setting managing unit 123 acquire the set value of eachsetting (Step S2302). Then, the setting managing unit 123 requests theacquisition of the set value of each setting managed by the settingmanaging unit 132 of the stamp plug-in 113 (Step S2303).

Then, the setting managing unit 132 of the stamp plug-in 113 returns theset value of each setting managed thereby to the setting managing unit123 (Step S2304). Then, the setting managing unit 123 returns the setvalue of each setting that is managed thereby and the set value of eachsetting that is managed by the setting managing unit 132 of the stampplug-in 113 to the setting saving unit 122 (Step S2305).

Then, the setting saving unit 122 saves, in “Devmode”, only the setvalue of setting of which the save destination is designated in“Devmode” as save destination information among the set values of eachsetting (Step S2306).

After that, the setting saving unit 122 saves, in a save area, only theset value of setting of which the save destination is designated in thesave area as save destination information among the set values of eachsetting (Step S2307). Then, the setting saving unit 122 returns“Devmode” (Step S2308).

In the processing procedure described above, the setting saving unit 122of the core driver 111 may receive the set value including the set valueincluded in the plug-in through the setting managing unit 123 of thecore driver. As a result, an operation can be performed as if thesetting managing unit of the plug-in is present only by adding thedescription to function information.

Next, it will be explained about a process when the setting saving unit122 of the core driver 111 according to the present embodiment saves theset value. FIG. 24 is a flowchart illustrating the process procedureperformed in the setting saving unit 122 according to the presentembodiment.

First, the setting saving unit 122 acquires the setting list inside the“Devmode” key from the save destination information stored in thestorage unit 104 (Step S2401). In the example illustrated in FIG. 6,“layout”, “booklet”, “copies”, and “papersize” are acquired as thesetting list. These settings are setting that should be saved in“Devmode”.

Then, the setting saving unit 122 determines whether the setting list isnull (Step S2402). When it is determined that the setting list is null(Step S2402: Yes), the process procedure advances to Step S2406.

On the other hand, when it is determined that the setting list is notnull (Step S2402: No), the setting saving unit 122 reads the nextsetting name from the setting list (Step S2403). The read-in of thesetting name is performed in order of “layout”, “booklet”, “copies”, and“papersize” in the example illustrated in FIG. 6.

Next, the setting saving unit 122 performs an acquisition request on thesetting managing unit 123 and determines whether a set valuecorresponding to the setting name is acquired (Step S2404). When the setvalue corresponding to the setting name in not acquired (Step S2404:No), the process is again started with Step S2402.

On the other hand, when it is determined that the set valuecorresponding to the setting name is acquired (Step S2404: Yes), thesetting saving unit 122 saves the acquired set value in a “Devmode”structure (Step S2405). After that, the process is again started withStep S2402.

Then, after the setting list related to “Devmode” is null, the settingsaving unit 122 acquires the setting list inside a “registry” key fromthe save destination information stored in the storage unit 104 (StepS2406). In the example illustrated in FIG. 6, the setting saving unit122 acquires “userid” as the setting list. These settings are settingthat should be saved in a registry.

Then, the setting saving unit 122 determines whether the setting listrelated to the registry is null (Step S2407). When it is determined thatthe setting list is not null (Step S2407: No), the next setting name isread from the setting list (Step S2408). The read-in of the setting nameis performed in order of “userid” in the example illustrated in FIG. 6.

Next, the setting saving unit 122 performs an acquisition request on thesetting managing unit 123 and determines whether the set valuecorresponding to the setting name is acquired (Step S2409). When the setvalue corresponding to the setting name is not acquired (Step S2409:No), the process is again started with Step S2407.

On the other hand, when it is determined that the set valuecorresponding to the setting name is acquired (Step S2409: Yes), thesetting saving unit 122 saves the acquired set value in the registry(Step S2410). After that, the process is again started with Step S2407.

On the other hand, when it is determined that the setting list is nullat Step S2407 (Step S2407: Yes), the process is terminated.

In accordance with the process described above, the setting required bythe printer driver 103 to perform a process is saved for the “Devmode”structure and the registry. Moreover, even when the plug-in is added,the setting required for the process performed by each plug-in can beperformed by performing the process described above in accordance withthe save destination information illustrated in FIG. 16.

Next, it will be explained about a print process. FIG. 25 is a sequencediagram illustrating a process for performing a print from theapplication when the stamp plug-in 113 and the borderline plug-in 114are added. This process corresponds to the processes of Steps S1811 toS1814 of FIG. 18.

First, the application 101 commands the drawing unit 124 of the coredriver ill to start a print job (Step S2501).

Next, the drawing unit 124 of the core driver 111 gives notice to thedrawing unit 133 of the stamp plug-in 113 of the start of the print job(Step S2502). In response to the notice, the stamp plug-in 113 does notparticularly perform a process.

Then, the drawing unit 124 of the core driver 111 gives notice to thedrawing unit 141 of the borderline plug-in 114 of the start of the printjob (Step S2503). In response to the notice, the borderline plug-in 114does not particularly perform a process.

After that, the application 101 commands the drawing unit 124 of thecore driver 111 to start a page print (Step S2504).

Then, the drawing unit 124 of the core driver 111 commands the drawingunit 133 of the stamp plug-in 113 to start the page print (Step S2505).In response to the notice, the stamp plug-in 113 does not particularlyperform a process.

After that, the drawing unit 124 of the core driver 111 commands thedrawing unit 141 of the borderline plug-in 114 to start the page print(Step S2506). In response to the notice, the borderline plug-in 114 doesnot particularly perform a process.

Then, the application 101 sends the drawing data to the drawing unit 124of the core driver 111 (Step S2507). After that, the drawing unit 124converts the drawing data into manuscript data that can be interpretedby a printer (Step S2508).

Then, the application 101 commands the drawing unit 124 of the coredriver 111 to terminate the print (Step S2509).

Then, the drawing unit 124 of the core driver 111 commands the drawingunit 133 of the stamp plug-in 113 to terminate the page print (StepS2510). At this time, if the function of the stamp plug-in 113 is ON,the drawing unit 133 of the stamp plug-in 113 adds a stamp to themanuscript data (Step S2511). In the present processing procedure, it isassumed that the function of the stamp plug-in 113 is ON.

After that, the drawing unit 124 of the core driver 111 commands thedrawing unit 141 of the borderline plug-in 114 to terminate the print ofpage (Step S2512). At this time, if the function of the borderlineplug-in 114 is ON, the drawing unit 141 of the borderline plug-in 114adds a borderline to manuscript data (Step S2513).

The processes of Steps S2504 to S2513 described above are repeated bythe number of pages. Then, the application 101 commands the drawing unit124 of the core driver 111 to terminate a print job (Step S2514).

As indicated in the processing procedure described above, at the time ofprint process, each drawing unit of the plug-in performs a process ifneeded when accepting the notice from the drawing unit 124 of the coredriver 111.

In the example illustrated in FIG. 2, the borderline plug-in 114includes only the drawing unit 141 as a module. Hereinafter, it will beexplained about a case when a screen display unit that displays asetting screen of the borderline is newly developed and added.

FIG. 26 is a block diagram illustrating the configuration of the PC 100when a screen display unit 1621 of the borderline plug-in 114 is added.

As illustrated in FIG. 26, in the printer driver 103 of the PC 100, theborderline plug-in 114 further includes the screen display unit 1621that displays a setting screen.

It will be explained about a procedure of newly adding the screendisplay unit 1621 to the borderline plug-in 114. This procedure isperformed by using an installer in the present embodiment. However, theuser can manually perform the procedure.

First, the installer adds a dynamic link library of the screen displayunit of the borderline plug-in 114. After that, the installer adds adescription related to the screen display unit 1621 of the borderlineplug-in 114 to the plug-in information of the storage unit 104.

FIG. 27 is a diagram illustrating the example of plug-in informationwhen the screen display unit 1621 is added to the borderline plug-in114. As indicated by the reference numeral 2701, the screen display unit1621 of the borderline plug-in 114 is added to the plug-in information.

As illustrated in FIG. 27, it is assumed that the file name of thedynamic link library of the screen display unit 1621 of the borderlineplug-in 114 is “borderlineUI.dll”. As for the borderline plug-in 114,the screen display unit 1621 prepares “borderlineUI.dll” and the drawingunit 141 prepares “borderline.dll”, which are different dynamic linklibraries each other. The dynamic link libraries may be appropriatelycalled out by separately designating different dynamic link libraries inthe plug-in information.

Next, the installer deletes the description related to the function ofthe borderline plug-in 114 from the layout information of the storageunit 104. Then, the installer adds a description related to“PluginDialogButton” for calling out the setting screen of theborderline plug-in 114 to the layout information.

FIG. 28 is a diagram illustrating an example of layout information afterthe description is modified by the installer when the screen displayunit 1621 is added to the borderline plug-in 114. In an exampleillustrated in FIG. 28, as indicated by the reference numeral 2801, adescription related to “PluginDialogButton” is added for the borderlineplug-in 114.

It will be explained about a setting screen that is displayed on thebasis of the layout information. FIG. 29 is a diagram illustrating theexample of a setting screen that is displayed by the screen display unit121 of the core driver ill when the screen display unit 1621 is added tothe borderline plug-in 114. As indicated by the reference numeral 2901of FIG. 29, a push button for calling the setting screen of theborderline plug-in 114 is added instead of the check box for ON/OFF ofthe function of the borderline plug-in 114.

When the push button is pushed down by the user, the screen display unit1621 of the borderline plug-in 114 displays the setting screen. FIG. 30is a diagram illustrating an example of a setting screen that isdisplayed by the screen display unit 1621 of the borderline plug-in 114.

The setting screen of the borderline plug-in 114 illustrated in FIG. 30displays a simple preview that is a print result of a compactionfunction and an ON/OFF function of the borderline plug-in 114. Thesetting related to the borderline plug-in 114 may be accepted throughthe setting screen.

In this manner, it is not necessary to modify the drawing unit 141 ofthe borderline plug-in 114 and also is not necessary to modify functioninformation. Even if the borderline plug-in 114 includes a settingsaving unit, it is not necessary to modify the setting saving unit.Moreover, because modification is not necessary to perform on a printerdriver that has been already installed in the OS 102 except for settinginformation, it is not necessary to reinstall the printer driver. As aresult, the work burden of a user can be reduced.

In other words, the printer driver conventionally has a lot of modulesfor a screen display, the saving of setting, the management of updating,printing and the like. Therefore, the cost of development becomes highwhen developing a plug-in that performs all the functions. Because, inthe printer driver 103 of the present embodiment, it is necessary tocreate only a module required in the plug-in and to call out the modulesof the printer driver 103 for the other modules, the cost of developmentcan be reduced.

Information is only added to a reference file as a substitute means ofeach dedicated module of a driver. In this way, a process equal to thecase where the dedicated module of the plug-in driver is executed can berealized by executing the module of the printer driver and thus the costof development of the plug-in driver can be reduced.

Each module of the core driver ill of the printer driver 103 accordingto the present embodiment can perform the same operation as that of eachmodule of the plug-in as a substitute means of each module of theplug-in only by modifying various types of setting information (layoutinformation, save destination information, function information, andplug-in information). As a result, a cost for developing a plug-in canbe lowered.

Moreover, the present invention has a mechanism that a plug-in isdivided into a plurality of physical modules and the physical modulesare utilized as the components of the same plug-in. As a result, aphysical module of a new processing unit can be added without modifyingphysical modules other than a physical module that is expected to beadded. Therefore, the cost of development when adding a process to anexisting plug-in can be lowered.

FIG. 31 is a diagram illustrating the hardware configuration of the PC100 according to the present embodiment. As illustrated in FIG. 31, thePC 100 includes a CPU 3101, a ROM (Read Only Memory) 3102, a RAM 3103,an HDD 3104, a display device 3105 such as a display unit, an inputdevice 3106 such as a keyboard or a mouse, a communication interface3107, and a bus 3108 that connects these components. The PC 100 has thehardware configuration of a normal computer.

The printer driver (program) 103 executed in the PC 100 according to thepresent embodiment is a file that can be installed or executed and isrecorded and provided in a computer-readable storage medium such asCD-ROM, flexible disk (FD), CD-R, or DVD (Digital Versatile Disk).

Moreover, the present invention may have a configuration that theprinter driver 103 executed in the PC 100 according to the presentembodiment is stored in a computer that is connected to a network suchas Internet and is downloaded by way of a network. Moreover, the presentinvention may have a configuration that the printer driver 103 executedin the PC 100 according to the present embodiment is provided ordistributed by way of a network such as Internet.

Moreover, the present invention may have a configuration that theprinter driver 103 executed in the PC 100 according to the presentembodiment is previously incorporated in the ROM to be provided to auser.

The printer driver 103 executed in the PC 100 according to the presentembodiment has a module configuration including the components (the coredriver 111 and various types of plug-ins) described above. As actualhardware, the CPU 3101 reads out and executes the printer driver 103from the storage medium to load the components on the RAM 3103 and togenerate the core driver 111 and various types of plug-ins on the RAM3103.

As described above, according to an aspect of the present invention, thedevelopment burden of a plug-in can be reduced.

Although the invention has been described with respect to specificembodiments for a complete and clear disclosure, the appended claims arenot to be thus limited but are to be construed as embodying allmodifications and alternative constructions that may occur to oneskilled in the art that fairly fall within the basic teaching herein setforth.

What is claimed is:
 1. An information processing apparatus that requestsprint processing to an image processing apparatus, the informationprocessing apparatus comprising: a function-information storing unitthat stores function-information, the function-information including atleast one print processing setting among print processing settings thatcan be requested to the image processing apparatus; adisplay-information storing unit that stores display-information fordisplaying display parts, each of which corresponds to each of the printprocessing settings, on a first display window through which the printprocessing setting requesting the image processing apparatus isreceived, and added display-information for displaying a display part,which is added in accordance with addition of a print processing settingthat can be requested to the image processing apparatus and correspondsto the added print processing setting; a first display unit thatdetermines whether the added print processing setting corresponding tothe display part is included in the function-information and displays,on a screen of the information processing apparatus, the first displaywindow based on the display-information and the addeddisplay-information and the function-information, the first displaywindow including display through which print processing setting of theadded print processing setting determined to be included is received; aprint-setting storing unit that stores a print processing setting thatis accepted through the first display window displayed on the firstdisplay unit as print processing setting that requests the imageprocessing apparatus; and a second display unit that displays, on thescreen of the information processing apparatus, a second display windowthrough which an added print processing setting, which is not includedin the function-information among added print processing settingscorresponding to the display parts displayed on the first displaywindow, is received.
 2. The information processing apparatus accordingto claim 1, wherein the display-information storing unit stores thereindisplay-information for displaying, on the first display window, thedisplay parts, each corresponding to each of the print processingsettings included in the function-information.
 3. The informationprocessing apparatus according to claim 1, wherein the second displayunit displays the second display window through which the added printprocessing setting, which is determined not to be included by the firstdisplay unit, is accepted.
 4. A method implemented on an informationprocessing apparatus that requests print processing to an imageprocessing apparatus, the method comprising: storingfunction-information, the function-information including at least oneprint processing setting among print processing settings that can berequested to the image processing apparatus; storing display-informationfor displaying display parts, each of which corresponds to each of theprint processing settings, on a first display window through which theprint processing setting requesting the image processing apparatus isreceived, and added display-information for displaying a display part,which is added in accordance with addition of a print processing settingthat can be requested to the image processing apparatus and correspondsto the added print processing setting; determining whether the addedprint processing setting corresponding to the display part is includedin the function-information and displaying, on a screen of theinformation processing apparatus, the first display window based on thedisplay-information and the added display-information and thefunction-information, the first display window including display throughwhich print processing setting of the added print processing settingdetermined to be included is received; storing a print processingsetting that is accepted through the first display window as printprocessing setting that requests the image processing apparatus; anddisplaying, on the screen of the information processing apparatus, asecond display window through which an added print processing setting,which is not included in the function-information among added printprocessing settings corresponding to the display parts displayed on thefirst display window, is received.
 5. A non-transitory computer-readablestorage medium including computer executable instructions, wherein theinstructions, when executed by a computer, cause the computer to performa method that requests print processing to an image processingapparatus, the method comprising: storing function-information, thefunction-information including at least one print processing settingamong print processing settings that can be requested to the imageprocessing apparatus; storing display-information for displaying displayparts, each of which corresponds to each of the print processingsettings, on a first display window through which the print processingsetting requesting the image processing apparatus is received, and addeddisplay-information for displaying a display part, which is added inaccordance with addition of a print processing setting that can berequested to the image processing apparatus and corresponds to the addedprint processing setting; determining whether the added print processingsetting corresponding to the display part is included in thefunction-information and displaying, on a screen of an informationprocessing apparatus, the first display window based on thedisplay-information and the added display-information and thefunction-information, the first display window including display throughwhich print processing setting of the added print processing settingdetermined to be included is received; storing a print processingsetting that is accepted through the first display window as printprocessing setting that requests the image processing apparatus; anddisplaying, on the screen of the information processing apparatus, asecond display window through which an added print processing setting,which is not included in the function-information among added printprocessing settings corresponding to the display parts displayed on thefirst display window, is received.